//
// Created by twetec on 25-10-18.
//

#include <gtest/gtest.h>
#include <bs_thread_pool/BS_thread_pool.hpp>

namespace tests::probe
{
namespace
{
TEST(TCPProbeIPv4Test, testThreadPool)
{
    BS::thread_pool pool(4); // 创建一个包含4个线程的线程池

    pool.submit_task([] {
        std::cout << "线程池任务" << std::endl;
    }); // 提交任务

    std::cout << "主线程任务" << std::endl;

    while (getchar() != '\n');
}
}
}
